$(function() {

		//		$.ajax({
		//			type: "get",
		//			url: "http://192.168.8.123:8080/jeecg/wecharReportController.do?queryDate1",
		//			dataType: "json",
		//			async: true,
		//			success: function(data) {
		//				console.info(data);
		var data = $.parseJSON('{"message":"true","SUCCESS":"true","queryData":[{"COUNT":2292532,"GN":369561,"YEAR":"2014","GJ":3845942},{"COUNT":2926954,"GN":457350,"YEAR":"2015","GJ":4939208},{"COUNT":3453403,"GN":420258,"YEAR":"2016","GJ":6066290}]}');
		if(data.SUCCESS) {
			$('#chart0').highcharts({
				chart: {
					zoomType: 'none'
				},
				title: {
					text: '国际及地区旅客'
				},
                credits: {
                    enabled: false
                },
				xAxis: [{
					categories: arrayListKeyWord(data.queryData, "YEAR", false),
					crosshair: true
				}],
				yAxis: [{ // Primary yAxis
					labels: {
						format: '{value}%',
						style: {
							color: Highcharts.getOptions().colors[1]
						}
					},
					title: {
						text: '',
						style: {
							color: Highcharts.getOptions().colors[1]
						}
					}
				}, { // Secondary yAxis
					title: {
						text: '数量',
						style: {
							color: Highcharts.getOptions().colors[0]
						}
					},
					labels: {
						format: '{value}人次',
						style: {
							color: Highcharts.getOptions().colors[0]
						}
					},
					opposite: true
				}],
				tooltip: {
					shared: true
				},
				plotOptions: {
					series: {
						minPointLength: 5
					}
				},
				series: [{
					name: '国内',
					type: 'column',
					yAxis: 1,
					data: arrayListKeyWord2(data.queryData, "GN", false),
					tooltip: {
						valueSuffix: '人次'
					}
				}]
			});
//			var tableTpl0 = document.getElementById('tableTpl0').innerHTML;
//			laytpl(tableTpl0).render(data.data.queryDATA, function(html){
//			  document.getElementById('table0').innerHTML = html;
//			});
		}
		//			}
		//		});


});
